package com.kevin.j2eeToolBox.io.stream;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class OutputStreamTest {
	public static void main(String[] args) throws IOException {
		OutputStream os = new FileOutputStream("D:\\Test\\OutputStream1.txt");

		String txt = "hello world";
		byte[] buffer = txt.getBytes();

		os.write(buffer);
		os.close();
	}
}
